import { FC, useState } from 'react'
import { Row, Col } from 'antd'
// 测试热更新组件
const TestHot: FC = () => {
  const [count, setCounts] = useState('')
  const onChange = (e: any) => {
    setCounts(e.target.value)
  }
  return (
    <Row>
      <Col span={12}>
        <p>受控组件</p>
        <input type="text" value={count} onChange={onChange} />
      </Col>
      <Col span={12}>
        <p>非受控组件</p>
        <input type="text" />
      </Col>
    </Row>
  )
}
export default TestHot
